﻿#ifndef DIALOG_H
#define DIALOG_H

#include "itembaseeditordialog.h"
#include "itemadd.h"
#include "itemedit.h"

#define TD_PASSWD "td_passwd"

namespace Ui {
class Dialog;
}

class Dialog : public ItemBaseEditorDialog
{
    Q_OBJECT

public:
    explicit Dialog(QWidget *parent=0);
    ~Dialog();

    void updateView();
    void generateMenu();
    void newItem();
    void editItem();
    void collapseAll();

private slots:
    void on_treeView_clicked(const QModelIndex &index);

private:
    Ui::Dialog *ui;
};

#endif // DIALOG_H
